.custom-table-wrapper {
  position: relative;
  width: 100%;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.custom-table th {
  padding: 16px 12px;
  background: #fafafa;
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s ease;
  position: sticky;
  top: 0;
}

.custom-table th:hover {
  background: #f3f4f6;
}

.custom-table td {
  padding: 14px 12px;
  font-size: 14px;
  color: #4b5563;
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s ease;
}

.custom-table tr:hover td {
  background: #f9fafb;
}

.custom-table tr:last-child td {
  border-bottom: none;
}

/* 斑马纹效果 */
.custom-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.table-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.table-empty {
  padding: 48px 0;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  background: #ffffff;
}

.table-empty-icon {
  font-size: 24px;
  color: #d1d5db;
  margin-bottom: 8px;
}

/* 操作按钮样式 */
.table-action-btn {
  padding: 6px 12px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.table-action-btn:hover {
  background: #2563eb;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}